﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="city_m.aspx.cs" Inherits="admin_func_city_m" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel ID="Panel1" runat="server">
        <br />
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/index.aspx">Home</asp:HyperLink>
        &nbsp;/
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
        &nbsp;/
        <asp:HyperLink ID="HyperLink2" runat="server" Visible="False">HyperLink</asp:HyperLink>
        <br />
        <br />
        <asp:Label ID="Label2" runat="server" Text="選擇要管理的功能"></asp:Label>
        <br />
        <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">國家 &amp; 
        城市管理</asp:LinkButton>
        <br />
        <asp:LinkButton ID="LinkButton2" runat="server" onclick="LinkButton2_Click">HotSpot管理</asp:LinkButton>
        <br />
        <br />
        <asp:Panel ID="Panel2" runat="server">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl='<%# Eval("url") %>' 
                                Text='<%# Eval("title") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Label ID="Label4" runat="server" Text='<%# Eval("country") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <br />
            <asp:Label ID="Label3" runat="server" Text="請選擇要刪除/修改的城市"></asp:Label>
            <br />
            <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" 
                onselectedindexchanged="DropDownList2_SelectedIndexChanged">
            </asp:DropDownList>
            <br />
            城市名：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <br />
            <asp:Button ID="Button1" runat="server" Text="Delete" onclick="Button1_Click" 
                style="height: 26px" />
            &nbsp;<asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="Edit" />
            <br />
            <asp:Label ID="msg" runat="server"></asp:Label>
        </asp:Panel>
        <asp:Panel ID="Panel3" runat="server">
            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl='<%# Eval("url") %>' 
                                Text='<%# Eval("title") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <br />
            <asp:Label ID="Label5" runat="server" Text="請選擇要刪除的HotSpot"></asp:Label>
            <br />
            <asp:DropDownList ID="DropDownList3" runat="server">
            </asp:DropDownList>
            <br />
            <asp:Button ID="Button2" runat="server" Text="Delete" onclick="Button2_Click" />
            <br />
            <br />
            <asp:Label ID="Label6" runat="server" Text="Label"></asp:Label>
        </asp:Panel>
        <br />
        <br />
    </asp:Panel>
</asp:Content>

